<script type="text/JavaScript">
function selthis()
{
	$('.s-nav a').click(function(){
		$('.s-nav a').removeClass().addClass('n');
		$(this).removeClass().addClass('y');
		$('#s-txt').val($(this).attr('value'));
		$('#s-txt').attr('name',$(this).attr('name'));
		$('.box').attr('action',$(this).attr('s'));
	});
}
</script>
<div class="navtop"><div class="logo"><A href="<?=$navheadurl?>index<?=$end?>" <?php if($tag=='index'){echo "class=current";}?> title="网上购物，从这里开始" ><img src="<?=$navheadurl?>template/<?=MOBAN?>/images/logo.gif" /></A></div>
<div class="searchbox">
<div style="width:600px; text-align:left">
<div class="s-nav">
  <a class="y" id="shangpin" value="输入您想要的宝贝" s="<?=$navheadurl?>list.php" name="q" onclick="selthis();">宝贝</a>
  <a class="n" id="zhanggui" value="输入您想找的掌柜" s="<?=$navheadurl?>shop.php" name="nick" onclick="selthis();">掌柜</a>
  <a class="n" id="shangcheng" value="输入您想要的商城" s="<?=$navheadurl?>malllist.php" name="mall" onclick="selthis();">商城</a>  
</div>
<div class="clear"></div>
<form class="box" name="formname" method="get" action="<?=$navheadurl?>list.php" style="float:left; ">
  <span class="box-middle"><input name="q" onfocus="this.value=''" type="text" id="s-txt" class="s-txt" value="输入您想要的宝贝" /><input type="submit" class="sbutton" value="" /></span>
  <span class="box-right"></span>
</form>
</div>
</div>
</div>
<div id="tab" >
      <a href="<?=$navheadurl?>index<?=$end?>"><span <?php if($tag=='index'){echo "class=nowtab";}else{echo "class=linktab";}?>>首页</span></a>    
      <img class="topmargin" src="<?=$navheadurl?>template/<?=MOBAN?>/images/sline.png" />
      <a href="<?=$navheadurl?>malllist<?=$end?>"><span <?php if($tag=='malllist'){echo "class=nowtab";}else{echo "class=linktab";}?> >返现商城</span></a>    
      <img class="topmargin" src="<?=$navheadurl?>template/<?=MOBAN?>/images/sline.png" />
      <a href="<?=$navheadurl?>list<?=$end?>"><span <?php if($tag=='list'){echo "class=nowtab";}else{echo "class=linktab";}?>>淘宝返现</span></a>    
      <img class="topmargin" src="<?=$navheadurl?>template/<?=MOBAN?>/images/sline.png" />       
      <a href="<?=$navheadurl?>shoplist<?=$end?>"><span <?php if($tag=='shoplist'){echo "class=nowtab";}else{echo "class=linktab";}?>>淘宝店铺</span></a>
      <img class="topmargin" src="<?=$navheadurl?>template/<?=MOBAN?>/images/sline.png" />
      <A href="<?=$navheadurl?>sitemap<?=$end?>"><span <?php if($tag=='sitemap'){echo "class=nowtab";}else{echo "class=linktab";}?> >分类导购</span></A>    
      <img class="topmargin" src="<?=$navheadurl?>template/<?=MOBAN?>/images/sline.png" />
      <a href="<?=$navheadurl?>article<?=$end?>"><span <?php if($tag=='article'){echo "class=nowtab";}else{echo "class=linktab";}?> >购物资讯</span></a>    
      <img class="topmargin" src="<?=$navheadurl?>template/<?=MOBAN?>/images/sline.png" />
      <a href="<?=$navheadurl?>user/center<?=$end?>" ><span <?php if($tag=='center'){echo "class=nowtab";}else{echo "class=linktab";}?>>用户中心</span></a>  
      <img class="topmargin" src="<?=$navheadurl?>template/<?=MOBAN?>/images/sline.png" />
      <a href="<?=$navheadurl?>fanxianbao" ><span <?php if($tag=='fxb'){echo "class=nowtab";}else{echo "class=linktab";}?>>返现宝</span></a> 
     <img class="topmargin" src="<?=$navheadurl?>template/<?=MOBAN?>/images/sline.png" />
     <?php if(UC=='1'){?><a href="<?=$navheadurl?>bbs/" target="_blank"><span class=linktab >交流论坛</span></a><?php }else{?>
	 	<a href="<?=$navheadurl?>article_list.php?cid=1"><span <?php if($tag=='help'){echo "class=nowtab";}else{echo "class=linktab";}?>>站点帮助</span></a>
	 <?php }?>                
    </div>